<?php
$SenderID = $_POST['CliNumero'];
$PbcID = $_POST['Ed_PID'];

MYTCONN();
include('cpl_mkpbcproc.php');
$_POST['prc_open'] = $PbcID;
?>
<script charset="utf-8" type="text/javascript">document.SetPBC.prc_procedure.value='';</script>
<?php mn_field('select', 'ED', 'prc_open', $PbcID, "SELECT amp_ID AS ID, CONCAT(amp_Time,' ',amp_Description) AS NAME FROM hd_amlprocess
	WHERE amp_Client = $SenderID AND amp_ID = $PbcID", '', '', '" size="1" style="width:100%" onchange="
	document.SetPBC.action=\'_response/call.php?get=Compliance/prc_act\';
	subform(\'SetPBC\',\'prc_Action\');'); ?>
<div class="Line">Documentos disponiveis na Ficha do Cliente
    <?php mn_field('select', 'ED', 'prc_docs[]', '', "SELECT
  dtd_ID AS ID, CONCAT(dtd_Fecha,'	',tdc_Tipo,' 	',dtd_Numero,' 	') AS NAME
  FROM hd_documentos
  INNER JOIN hd_documentostipos ON dtd_Tipo = tdc_Id
   WHERE dtd_Cliente = $SenderID AND dtd_Status = 2", '', '', '" size="5" multiple style="width:100%'); ?>
</div>
<div class="Line">Documentos de PBC disponiveis 
    <?php mn_field('radio', 'ED', 'amldoc_filter', '0', '', '', '', '" disabled'); ?>
    no Alerta
    <?php mn_field('radio', 'ED', 'amldoc_filter', '1', '', '', '', ''); ?>
    Todos <?php mn_field('select', 'ED', 'prc_docsAML[]', '', "SELECT
 dnl_ID AS ID, CONCAT(dnl_FechaEntrega,'	',dnc_Doc,'   					') AS NAME
  FROM hd_docdocumentos
  INNER JOIN hd_doctipos ON dnl_TipoDoc = dnc_ID
   WHERE dnl_CL = $SenderID AND dnl_Activo = 1", '', '', '" size="6" multiple style="width:100%'); ?>
</div>
<div id="prc_Action"><?php include('prc_act.php'); ?></div>